﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Renci.iRods.Common;

namespace Renci.iRods.Packets
{
    //#define PortList_PI "int portNum; int cookie; int sock; int windowSize; str hostAddr[LONG_NAME_LEN];"
    [Packet("PortList_PI")]
    internal class PortListPacket : Packet
    {
        [PacketField("portNum", 0, DataTypes.Int)]
        public int PortNumber { get; set; }

        [PacketField("cookie", 1, DataTypes.Int)]
        public int Cookie { get; set; }

        [PacketField("sock", 2, DataTypes.Int)]
        public int Socket { get; set; }

        [PacketField("windowSize", 3, DataTypes.Int)]
        public int WindowSize { get; set; }

        [PacketField("hostAddr", 4, DataTypes.String, 1024)]
        public string Host { get; set; }

    }
}
